function simxcorr()

global ALLCH

A=ALLCH{1};
B=ALLCH{3};

for i = 1:size(A,1)
    am = mean(A(i,:));
    bm = mean(B(i,:));
    c(i,:) = xcorr(A(i,:)-am, B(i,:)-bm, 'coeff');
end;
cm = mean(c);
figure
plot(cm);
